﻿@using QLMB.Infrastructure
@model QLMB.ViewModels.CheckIn
@{
    ViewBag.Title = "CheckIn";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}


<script language = "javascript" type ="text/javascript">
    $(document).ready(function () {
        $("#CB").hide();
        $("input[name = 'LoaiCheckin']").change(function () {
            var i = $("input[name = 'LoaiCheckin']:checked").val();
            if (i == 1) {
                $("#VE").show();
                $("#CB").hide();
            }
            else {
                $("#VE").hide();
                $("#CB").show();
            }
        });

    });  
</script>

<div class="CheckIn">     
  @using (Html.BeginForm())
     {
      <div style="color:#F00" >@ViewBag.Message</div>
           <table  border="0">
              <tr>
                <td>Hinh Thuc Check In : @Html.RadioButton("LoaiCheckin",1,true)Ma ve</td>                
                <td>@Html.RadioButton("LoaiCheckin", 2)Chuyen bay</td>
              </tr>
              <tr>
                <td>@Html.LabelFor(x => x.Ho)</td>
                <td>@Html.EditorFor(x => x.Ho)
                    @Html.ValidationMessageFor(x => x.Ho)</td>
              </tr>
              <tr>
                <td>@Html.LabelFor(x => x.Ten)</td>
                <td> @Html.TextBoxFor(x => x.Ten)
                     @Html.ValidationMessageFor(x => x.Ten)</td>
              </tr>              
              <tr>
                <td>@Html.LabelFor(x => x.NoiDi)</td>
                <td>@Html.DropDownListFor(x => x.NoiDi, new SelectList(Model.Tp, "Value", "Text"), "Chon noi di")
                    @Html.ValidationMessageFor(x => x.NoiDi)</td>
              </tr>
              <tr id = "VE">
                <td>@Html.LabelFor(x => x.MaVe)
                </td>
                <td>@Html.TextBoxFor(x => x.MaVe)
                    @Html.ValidationMessageFor(x => x.MaVe)
                </td>
              </tr>
               <tr id = "CB">
                <td> @Html.LabelFor(x => x.ChuyenBay)
                </td>
                <td> @Html.TextBoxFor(x => x.ChuyenBay)
                        @Html.ValidationMessageFor(x => x.ChuyenBay)
                </td>
              </tr>
              <tr>
                <td>@Html.LabelFor(x => x.NgayDi)
                </td>
                <td> @Html.CheckedRadioButtonFor(x => x.NgayDi, "Hom Nay")Hom Nay
                     @Html.CheckedRadioButtonFor(x => x.NgayDi, "Ngay Mai")Ngay Mai
                     @Html.ValidationMessageFor(x => x.NgayDi)
                </td>
              </tr>
              <tr>
                <td align="center"><input type="submit" value="Lam Thu Tuc" onclick="" />  
                </td>
              </tr>
            </table>            
  }
</div>
